import request from '@/utils/request'

// 查询住院充值记录列表
export function listZyrecharge(query) {
  return request({
    url: '/system/zyrecharge/list',
    method: 'get',
    params: query
  })
}

// 查询住院充值记录详细
export function getZyrecharge(id) {
  return request({
    url: '/system/zyrecharge/' + id,
    method: 'get'
  })
}

// 新增住院充值记录
export function addZyrecharge(data) {
  return request({
    url: '/system/zyrecharge',
    method: 'post',
    data: data
  })
}

// 修改住院充值记录
export function updateZyrecharge(data) {
  return request({
    url: '/system/zyrecharge',
    method: 'put',
    data: data
  })
}

// 删除住院充值记录
export function delZyrecharge(id) {
  return request({
    url: '/system/zyrecharge/' + id,
    method: 'delete'
  })
}
